import re
testString="very good"
formatString="%-35s:%s"
expression="very"
compiledExpression=re.compile(expression)
print(formatString % ("The expression",expression))
print(formatString % ("The compiled expression",compiledExpression))
print(formatString % ("ono-compiled search",re.search(expression,testString)))
print(formatString % ("compiled search",compiledExpression.search(testString)))
print(formatString % ("search SRE_Match contains",re.search(expression,testString).group()))
print(formatString % ("compiled search SRE_Match contains",compiledExpression.search(testString).group()))
